package com.xinghai.system.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.xinghai.common.annotation.Excel;
import com.xinghai.common.core.domain.BaseEntity;

import static com.xinghai.common.annotation.Excel.Type.EXPORT;

/**
 * 车型信息对象 xh_car_type_info
 * 
 * @author xinghai
 * @date 2024-07-23
 */
public class XhCarTypeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物流公司id */
    private Long deptId;

    /** 车型 */
    @Excel(name = "车型")
    private String info;

    /** 单价（公里） */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 状态;状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用",type = EXPORT)
    private String status;

    /** 删除标识;删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("info", getInfo())
            .append("price", getPrice())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }

    /** ============================= 查询使用 ============================= */
    /** 物流公司 */
    @TableField(exist = false)
    @Excel(name = "物流公司",type = EXPORT)
    private String deptName;

    /** 物流公司id数组，查询用 */
    @TableField(exist = false)
    private List<Long> deptIdList = new ArrayList<>();

    public List<Long> getDeptIdList() {
        return deptIdList;
    }

    public void setDeptIdList(List<Long> deptIdList) {
        this.deptIdList = deptIdList;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

}
